package net.realsee.service.wcs.data;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.data.WcsFacility;
import net.realsee.domain.wcs.data.bo.WcsFacilityBo;
import net.realsee.domain.wcs.data.vo.WcsFacilityVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 工厂Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsFacilityService extends IService<WcsFacility> {

    /**
     * 查询工厂
     */
    WcsFacilityVo selectVoById(Long id);

    /**
     * 查询工厂列表
     */
    TableDataInfo<WcsFacilityVo> selectVoPage(WcsFacilityBo bo, PageQuery pageQuery);

    /**
     * 查询工厂列表
     */
    List<WcsFacilityVo> selectVoList(WcsFacilityBo bo);

    /**
     * 新增工厂
     */
    Boolean insertByBo(WcsFacilityBo bo);

    /**
     * 修改工厂
     */
    Boolean updateByBo(WcsFacilityBo bo);

    /**
     * 校验并批量删除工厂信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
